home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Invisible Universe
/
Invisible Universe (1995)(Voyager)[Mac-PC].iso
/
mac
/
UNIVERSE
/
STARTUP.DIR
/
00006_Script_6
< prev
next >
Wrap
Text File
|
1995-11-14
|
2KB
|
82 lines
on startMovie
global gMenuVolume, gVolume
if the colorDepth < 8 then
alert("The Invisible Universe CD-ROM only works with 256 (8-bit) colors or more. Please modify your computer's color settings.")
quit
end if
set gMenuVolume = 10
set gVolume = 255 -- check with shared cast
setPaths
set the preLoadRAM = 204800
preLoadCast 1
end
on setPaths
--set the exitLock = 1
--set the keyDownScript to "checkKeyDowns"
if the machineType = 256 then
openXlib "fileio"
set theDrive = findCD()
set the searchPath = [¼
the moviePath,¼
the moviePath & "MIAWS\",¼
theDrive & ":\MOVIES\",¼
theDrive & ":\MOVIES\MIAWS\",¼
theDrive & ":\MEDIA\",¼
theDrive & ":\UNIVERSE\"]
else
set the searchPath = [¼
the moviePath, ¼
the moviePath & "MOVIES:", ¼
"Invisible Universe CD:MOVIES:", ¼
"Invisible Universe CD:MOVIES:MIAWS:",¼
"Invisible Universe CD:MEDIA:"]
end if
end setPaths
on findCD
set mp = the moviePath
set len = length(mp)
--
--
-- Running off the CD-ROM from the UNIVERSE Directory?
--
if (char 2 to len of mp) = ":\UNIVERSE\" then
return char 1 of mp
else
set theChar = charToNum("A") - 1
repeat with i = 4 to 26
if isCDThere(numToChar(theChar + i)) then
return(numToChar(theChar + i))
end if
end repeat
alert("Please insert the Invisible Universe CD-ROM and restart the program.")
quit
end if
end findCD
on isCDThere theDrive
set fn = getNthFileNameInFolder(theDrive & ":\MEDIA", 1)
if fn = "CC.MOV" then
return(1)
else
return(0)
end if
end